package com.zmzncs.lmtc.module.promotion.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.promotion.pojo.Reserve_temporary_rule.ReserveTemporaryRule;
import com.zmzncs.lmtc.module.promotion.pojo.Reserve_temporary_rule.ReserveTemporaryRuleDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 促销-预约规则-临时 Mapper 接口
 * </p>
 *
 * @author LMTC
 * @since 2021-05-18
 */
@Repository
@Mapper
public interface ReserveTemporaryRuleDao extends BaseMapper<ReserveTemporaryRule> {

      /** 查询促销-预约规则-临时分页数据 */
      IPage<ReserveTemporaryRuleDTO> list(Page page);

      /** 根据id查询数据 */
      ReserveTemporaryRuleDTO getById(Long id);


      /** 查询当日数据 */
      ReserveTemporaryRuleDTO getByDate(Long parkId,String date);

      /** 查询当日数据 */
      ReserveTemporaryRuleDTO getByToday(Long parkId);

      /** 查询明日数据 */
      ReserveTemporaryRuleDTO getByTomorrow(Long parkId);

}
